#ifndef __PWM_H_
#define __PWM_H_

#include "public.h"

//定义表示占空比的枚举类型
typedef enum
{
    Duty_0      = (uint8_t)0,
    Duty_20     = (uint8_t)20,
    Duty_40     = (uint8_t)40,
    Duty_60     = (uint8_t)60,
    Duty_80     = (uint8_t)80,
    Duty_100    = (uint8_t)100
}PWM_Value_t;

//定义结构体类型
typedef struct 
{
  PWM_Value_t Duty;
  void (*PWM_Init)();
  void (*PWM_LED_Adjust_Brightness)();
}PWM_t;

/* extern variables-----------------------------------------------------------*/
extern PWM_t PWM;
/* extern function prototypes-------------------------------------------------*/ 

#endif
/********************************************************
  End Of File
********************************************************/